﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RSHB.Framework.Data;
using RSHB.Frontend.UI;
using RSHB.Frontend.UI.Controllers;
using RSHB.Frontend.UI.ViewModels;

namespace RSHB.Frontend.Controllers
{
    public class HomeController : BaseRSHBController
    {
        BHDDataContext dataContext = new BHDDataContext();

        public ActionResult Index()
        {
            return View(new HomeBrowseViewModel(
                    new LoanAgreementBrowseViewModel(dataContext.LoanAgreements.ToList()),
                    new UserBrowseViewModel(dataContext.Users.ToList())
                ));
        }
    }
}
